<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../libs/layui/css/layui.css">
    <link rel="stylesheet" href="../mycss/index.css">
</head>
<body>
    <blockquote class="layui-elem-quote">
        <div class="layui-inline">
            <input type="text" id="key-value" lay-verify="required" placeholder="请输入任意关键字" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-inline button-group" id="hostconfig-btns">
            <button class="layui-btn active-btn " id="search-btn">查询</button>
            <button class="layui-btn layui-btn-normal active-btn" id="hostAdd">添加主机</button>
            <button class="layui-btn layui-btn-warm active-btn" id="multihostAdd" style="background-color:#5FB878">批量添加</button>
            <button class="layui-btn layui-btn-danger active-btn" id="multiDelete">批量删除</button>
            <button class="layui-btn layui-btn-normal active-btn" id="commandExec">命令执行</button>
        </div>
        <div class="layui-inline" id="refresh-div" style="float:right">
        	<button class="layui-btn layui-btn-primary active-btn " id="loadHostList"><i class="layui-icon" >&#x1002;</i> 刷新页面</button>
        </div>
    </blockquote>
    <table class="layui-hide" id="hosts-table" lay-filter="hostInfo"></table>
    <!--主机操作按钮-->
    <script type="text/html" id="barDemo">
        <a class="layui-btn  layui-btn-sm tool-bar" lay-event="reConn"><i class="layui-icon">&#xe64d;</i>重连</a>
        <a class="layui-btn layui-btn-sm tool-bar" lay-event="edit" style="background-color:#5FB878"><i class="layui-icon">&#xe63c;</i>查看</a>
        <a class="layui-btn layui-btn-danger layui-btn-sm tool-bar" lay-event="delete"><i class="layui-icon">&#xe640;</i>删除</a>
    </script>
    <!-- 通过返回的数据判断主机的连接状态 -->
    <script type="text/html" id="connStatus">
        {{#  if(d.conn_status == 0){ }}
        <a class="layui-btn layui-btn-sm "><i class="layui-icon">&#xe616;</i>成功</a>
        {{#  } else { }}
        <a class="layui-btn layui-btn-danger layui-btn-sm "><i class="layui-icon">&#x1007;</i>失败</a>
        {{#  } }}
    </script>
</body>
<script src="../libs/layui/layui.js"></script>
<script src="../myjs/index.js"></script>
<script src="../myjs/hostConfig/hostConfig.js"></script>
</html>